package com.kitty.game.school;

import com.kitty.game.school.model.SchoolSet;
import com.kitty.game.utils.Const;

import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 师门产品数据
 */
public class SchoolDataPool {

    /**师门集合，key:师门类型 value:师门配置*/
    public static Map<Byte, SchoolSet> schoolMap;

    /**主线任务迷失小孩任务中已方师门与对方师门配对， key: 已方师门  value: 对方师门*/
    public static Map<Byte, Byte> taskToFightMap;

    /**对应任务中出现的不同门派的性别 key: 师门， value: 对应性别*/
    public static Map<Byte, Byte> taskSchoolSexMap;

    /**对应任务中的不同门派的技能 key: 师门， value: 技能列表*/
    public static Map<Byte, List<Integer>> taskSchoolSkillMap;

    public static Map<Byte, Short> taskSchoolWeaponMap;

    static {
        /**写死...*/
        taskToFightMap = new HashMap<>();

        /**去克制的对方*/
        /**金克木*/
        taskToFightMap.put(Const.SCHOOL_WOOD, Const.SCHOOL_METAL);
        /**木克土*/
        taskToFightMap.put(Const.SCHOOL_EARTH, Const.SCHOOL_WOOD);
        /**土克水*/
        taskToFightMap.put(Const.SCHOOL_WATER, Const.SCHOOL_EARTH);
        /**水克火*/
        taskToFightMap.put(Const.SCHOOL_FIRE, Const.SCHOOL_WATER);
        /**火克金*/
        taskToFightMap.put(Const.SCHOOL_METAL, Const.SCHOOL_FIRE);

        /**外门弟子不同门派对应性别*/
        taskSchoolSexMap = new HashMap<>();
        taskSchoolSexMap.put(Const.SCHOOL_METAL, Const.SEX_MALE);
        taskSchoolSexMap.put(Const.SCHOOL_WOOD, Const.SEX_MALE);
        taskSchoolSexMap.put(Const.SCHOOL_WATER, Const.SEX_FEMALE);
        taskSchoolSexMap.put(Const.SCHOOL_FIRE, Const.SEX_FEMALE);
        taskSchoolSexMap.put(Const.SCHOOL_EARTH, Const.SEX_MALE);

        /**暂时随便写了一些各门派可用的技能*/
        taskSchoolSkillMap = new HashMap<>();
        taskSchoolSkillMap.put(Const.SCHOOL_METAL, Arrays.asList(11, 12, 13));
        taskSchoolSkillMap.put(Const.SCHOOL_WOOD, Arrays.asList(61, 62, 63));
        taskSchoolSkillMap.put(Const.SCHOOL_WATER, Arrays.asList(110, 111, 112));
        taskSchoolSkillMap.put(Const.SCHOOL_FIRE, Arrays.asList(161, 162, 163));
        taskSchoolSkillMap.put(Const.SCHOOL_EARTH, Arrays.asList(210, 211, 212));

        taskSchoolWeaponMap = new HashMap<>();
        taskSchoolWeaponMap.put(Const.SCHOOL_METAL, (short) 1135);
        taskSchoolWeaponMap.put(Const.SCHOOL_WOOD, (short) 1146);
        taskSchoolWeaponMap.put(Const.SCHOOL_WATER, (short) 1124);
        taskSchoolWeaponMap.put(Const.SCHOOL_FIRE, (short) 1102);
        taskSchoolWeaponMap.put(Const.SCHOOL_EARTH, (short) 1113);
    }
}
